import Router from './router'
import React, { Suspense, useEffect } from 'react'
import { getUserInfo } from './utils'

const App = () => {
  
  useEffect(() => {
    getUserInfo()
  }, [])

  return <Suspense fallback={<div>加载中。。。</div>}>
    <Router />
  </Suspense>
}

export default App